package com.example.royalchef.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * author: Administrator
 * created on: 2017/7/6 14:51
 * description:
 */

public class PushItem implements Parcelable{
    private String title;
    private String content;
    private String cover;

    public PushItem() {
    }

    public PushItem(String title, String content, String cover) {
        this.title = title;
        this.content = content;
        this.cover = cover;
    }

    protected PushItem(Parcel in) {
        title = in.readString();
        content = in.readString();
        cover = in.readString();
    }

    public static final Creator<PushItem> CREATOR = new Creator<PushItem>() {
        @Override
        public PushItem createFromParcel(Parcel in) {
            return new PushItem(in);
        }

        @Override
        public PushItem[] newArray(int size) {
            return new PushItem[size];
        }
    };

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(title);
        dest.writeString(content);
        dest.writeString(cover);
    }
}
